

import formula.calculator.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class QuadraticFormula extends Activity{

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.quadratic_formula);
    }
        
        public void onClick(View v) {
                switch(v.getId()) {
                        case R.id.quadraticSolve:
                                break;
                }
        }
        
        private double quadraticFormulaPositive(int a, int b, int c) {
                double result = (-b + Math.sqrt(b^2 - 4 * a * c) / (2 * a));
                return result;
        }
        
        private double quadraticFormulaNegative(int a, int b, int c) {
                double result = (-b - Math.sqrt(b^2 - 4 * a * c) / (2 * a));
                return result;
        }
}